﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

          
            TextBox3.Text = System.DateTime.Now.ToString();

        }

        protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                DropDownList1.Items.Add("新华社");
                DropDownList1.Items.Add("大象社");
                DropDownList1.Items.Add("老虎社");
            }
            
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            if (Page.IsPostBack)
            {
                Label4.Text = $"谢谢你提供的内容!";
            }
            else if (Page.IsPostBack==null)
            {
                Label4.Text = $"请输入内容!";
            }
            {
                
            }
        }

        protected void DropDownList1_SelectedIndexChanged1(object sender, EventArgs e)
        {

        }
    }
}